using System.Collections.Generic;
using SpellCenter.Core;

namespace SpellCenter.UI.Tests
{
    internal class WordContextControlDummy : IWordContext
    {

        private SpellWordInfo _word;
        private IList<SpellWordInfo> _spellWords;

        public SpellWordInfo UsedWord
        {
            get { return _word; }
        }

        #region IWordContext Members

        public void UseWord(int iWord)
        {
            _word = _spellWords[iWord];
        }

        public void SetWords(IList<SpellWordInfo> words)
        {
            _spellWords = words;
        }

        #endregion
    }
}